package com.wangkang.eduservice.mapper;
import com.wangkang.eduservice.entity.EduCourse;
import com.wangkang.eduservice.entity.vo.EduCoursePublishVo;
import com.wangkang.eduservice.entity.vo.EduCourseWebVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author wangkang
 * @since 2022-04-13
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 根据课程id  查询课程信息
     * @param courseId 课程id
     * @return CoursePublishVo
     */
    EduCoursePublishVo getPublishCourseInfo(String courseId);

    /**
     * 根据课程id，查询课程的基本信息
     * @param courseId
     * @return
     */
    EduCourseWebVo getBaseCourseInfo(String courseId);

}